package com.zhangtai.modules.service.system;

import com.zhangtai.modules.entity.system.BpmDataConfigurationEntity;
import com.zhangtai.utils.PageResult;
import com.zhangtai.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;


/**
 *   BPM流程参数配置
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-04-20 17:40:53
 */

public interface BpmDataConfigurationService {

    @GetMapping("/findBpmDataConfigurationList")
    @ApiOperation(value = "分页查询")
    PageResult queryPage(@RequestParam( value = "jobSystemName",required = false) String jobSystemName,
                         @RequestParam( value = "typeName",required = false) String typeName,
                         @RequestParam( value = "bpmtypeId",required = false) String bpmtypeId,
                         @RequestParam( value = "bpmtypeName",required = false) String bpmtypeName,
                         @RequestParam( value = "createName",required = false) String createName,
                         @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                         @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);

    @GetMapping("/infoBpmDataConfiguration")
    @ApiOperation(value = "根据id查找")
    BpmDataConfigurationEntity getByIdE(@RequestParam("id") Long id);

    @PostMapping("/saveBpmDataConfiguration")
    @ApiOperation(value = "保存")
    R saveE(@RequestBody BpmDataConfigurationEntity entity);

    @PostMapping("/updateBpmDataConfiguration")
    @ApiOperation(value = "修改")
    R updateByIdE(@RequestBody BpmDataConfigurationEntity entity);

    @GetMapping("/deleteOneBpmDataConfiguration")
    @ApiOperation(value = "根据ID删除")
    R removeOneById(@RequestParam("id") Long id);

    @PostMapping("/deleteBpmDataConfigurations")
    @ApiOperation(value = "根据ID集合删除")
    R removeByIdsE(@RequestBody List<Long> ids);
}

